package cn.kgc.springboot.vo;

import cn.kgc.springboot.entity.Role;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * @author: mosin
 * @version: v1.0  2022/8/1
 * 用户列表展示需要的字段
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class UserVO {

    private  Integer id;
    private  String loginName;
    private  Integer sex;
    private String idCard;
    private String phone;
    private Date createTime;
    private Integer state;
    // 用户角色列表
    private List<Role>  roles;

}
